package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

/**
 * @Classname DishService
 * @Description TODO
 * @Date 2023/3/5 11:28
 * @Created by 11404
 */

public interface DishService {

    //菜品分页查询
    Page<Dish> dhService(Integer pageName, Integer pageSize, String name);

    //新增套餐时回显菜品
    List<Dish> findListBySetmeal(Long categoryId, String name);

    // 新增菜品
    void dishInsert(Dish dish);

    //回显菜品数据  根据ID查询
    Object dishById(Long id);

    //修改菜品
    void updateDish(Dish dish);

    //菜品起售、停售
    void updateStatus(Integer status, List<Long> ids);

    //菜品的删除
    void deleteDishById(List<Long> ids);

    // H5菜品查询
    List<Dish> list(Long categoryId, Integer status);

}
